# -*- coding: utf-8 -*-
# @Time : 2021/12/30 14:35
# @Author : Limusen
# @File : unittest_demo_15


import unittest


class TestCase03(unittest.TestCase):

    def setUp(self) -> None:
        print("执行前置")

    def tearDown(self) -> None:
        print("执行后置信息")

    def test_case_ccc(self):
        print("执行用例:test_ccc")

    def test_case_aaa(self):
        print("执行用例:test_aaa")

    def test_case01_aaa(self):
        print("执行用例:test_aaa")

    def test_case02_ddd(self):
        print("执行用例:test_ddd")

    def test_case03_ccc(self):
        print("执行用例:test_ccc")

    def test_case04_bbb(self):
        print("执行用例:test_bbb")


if __name__ == "__main__":
    # unittest.main()

    # 改变执行顺序方法
    suite = unittest.TestSuite()
    suite.addTest(TestCase03('test_aaa'))
    suite.addTest(TestCase03('test_ccc'))
    unittest.main(defaultTest='suite')

    # # # 改名字 test_case04_bbb
    # unittest.main()